﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="TrainDetailStatByClassDetail.aspx.cs" Inherits="Page_TrainDetailStatByClassDetail"
    Title="Untitled Page" %>

<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="../css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />

    <script type="text/javascript" src="../Js/jquery-1.3.2.min-vsdoc.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-ui-1.7.2.custom.min.js"></script>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">

        function ChangeDetailView1() {
            var height = document.body.clientHeight;
            var infoDetail = document.getElementById("trInfo1");
            if (infoDetail.style.display == 'none') {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-collapse.png";
                infoDetail.style.display = '';
            }
            else {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-expand.png";
                infoDetail.style.display = 'none';
            }
            PageResize();
        }
        function selectAll(cbSelecteAll) {
            for (var i = 0; i < document.aspnetForm.elements.length; i++) {
                var e = document.aspnetForm.elements[i];
                if (e.type == "checkbox") {
                    e.checked = cbSelecteAll.checked;
                }
            }
        }

        function resizeMainTable() {
            var width = document.body.clientWidth;
            if (width < 450) {
                $(".mainTable").width(450);
            } else {
                $(".mainTable").width("100%");
            }
        }
        $(window).bind("resize", function() {
            resizeMainTable();
        })

        $(function() {
            resizeMainTable();
        })
    </script>

    <style type="text/css">
        .FieldName
        {
            width: 70px;
        }
        .FieldInput
        {
            width: 130px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <table cellspacing="2" cellpadding="0" border="0" id="tblOperator" runat="server">
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="学习情况" Selected="true" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="mainTable" width="100%"">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                        </td>
                        <td width="0" style="display: none;">
                            <a href="#">
                                <img src="../Images/Icon/icon-collapse.png" alt="字段" style="cursor: pointer;" onclick="ChangeDetailView1();"
                                    id="imgExpand1" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo2">
            <td>
                <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
                    <wsc:ListHeader ID="lhDeptName" runat="server" Title="&nbsp;单位" Width="80" />
                    <wsc:ListHeader ID="lhFullName" runat="server" Title="&nbsp;姓名" Width="60" />
                    <wsc:ListHeader ID="lhName" runat="server" Title="&nbsp;班级名称" />
                    <wsc:ListHeader ID="lhPassTime" runat="server" Title="&nbsp;培训年份" Width="60" />
                    <wsc:ListHeader ID="lhScore" runat="server" Title="&nbsp;学分" Width="80" />
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                    <asp:Repeater ID="rptOrderInfo" runat="server">
                        <ItemTemplate>
                            <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand; text-align: left;"
                                class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                                <td style="display: none;">
                                    <%# DataBinder.Eval(Container.DataItem,"ID") %>
                                </td>
                                <td width="80">
                                    <%# DataBinder.Eval(Container.DataItem, "ThirdLevelDeptDisplayName")%>
                                </td>
                                <td width="60">
                                    <%# DataBinder.Eval(Container.DataItem, "FullName")%>
                                </td>
                                <td>
                                    <span title='<%# Eval("ClassName") %>'>
                                        <%# DataBinder.Eval(Container.DataItem, "ClassName")%></span>
                                </td>
                                <td width="60">
                                    <%# DataBinder.Eval(Container.DataItem, "PassTime")%>
                                </td>
                                <td width="80">
                                    <%# DataBinder.Eval(Container.DataItem, "Score")%>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="Server">
    var height = document.body.clientHeight; var trInfo1 = document.getElementById("trInfo1");
    var MainContent1 = document.getElementById("MainContent1"); if (height > 111 + trInfo1.offsetHeight)
    { MainContent1.style.height=(height-111-trInfo1.offsetHeight)+"px"; } var MainContent2
    = document.getElementById("MainContent2"); if (height > 111 ) { MainContent2.style.height=(height-111)+"px";
    }
</asp:Content>
